package com.olt.server.dto;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class PageInput {

    Integer size;

    Integer currentPage;

    public String key;

    public Integer getCurrentPage() {
        return currentPage-1;
    }

    public String getKey() {
        return "%"+(key==null ? "" : key)+"%";
    }

}
